package gat.dto.req.log;

import com.fasterxml.jackson.annotation.JsonProperty;
import gat.dto.req.BaseQueryVo;
import gat.dto.req.QueryPageDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.validation.annotation.Validated;

import java.io.Serializable;

/**
 * 
 * @author: yanshukeji-java
 * @email: yanshukeji-java
 */
@Validated
@AllArgsConstructor
@NoArgsConstructor
@Data
@ApiModel
public class LogReqDto extends QueryPageDto implements Serializable{
    private static final long serialVersionUID = 1L;

    /**
     * 用户编号 VARCHAR
     */
    @ApiModelProperty(value = "用户编号")
    @JsonProperty(index = 100)
    private String userCode;
    /**
     * 用户手机号 VARCHAR
     */
    @ApiModelProperty(value = "用户手机号")
    @JsonProperty(index = 110)
    private String phone;
    /**
     * 用户名称 VARCHAR
     */
    @ApiModelProperty(value = "用户名称")
    @JsonProperty(index = 120)
    private String username;
    /**
     * 用户昵称 VARCHAR
     */
    @ApiModelProperty(value = "用户昵称")
    @JsonProperty(index = 130)
    private String nickname;
    /**
     * 描述 TEXT
     */
    @ApiModelProperty(value = "描述")
    @JsonProperty(index = 140)
    private String description;
    /**
     * 方法名 VARCHAR
     */
    @ApiModelProperty(value = "方法名")
    @JsonProperty(index = 150)
    private String method;
    /**
     * 参数 TEXT
     */
    @ApiModelProperty(value = "参数")
    @JsonProperty(index = 160)
    private String params;
    /**
     *  INT
     */
    @ApiModelProperty(value = "")
    @JsonProperty(index = 170)
    private Integer type;
    /**
     * 日志类型 VARCHAR
     */
    @ApiModelProperty(value = "日志类型")
    @JsonProperty(index = 180)
    private String logType;
    /**
     * 请求ip VARCHAR
     */
    @ApiModelProperty(value = "请求ip")
    @JsonProperty(index = 190)
    private String requestIp;
    /**
     * 地址 VARCHAR
     */
    @ApiModelProperty(value = "地址")
    @JsonProperty(index = 200)
    private String address;
    /**
     * 浏览器 VARCHAR
     */
    @ApiModelProperty(value = "浏览器")
    @JsonProperty(index = 210)
    private String brower;
    /**
     * 请求耗时 INT
     */
    @ApiModelProperty(value = "请求耗时")
    @JsonProperty(index = 220)
    private Long time;
    /**
     * 异常详情 TEXT
     */
    @ApiModelProperty(value = "异常详情")
    @JsonProperty(index = 230)
    private String exceptionDetail;

}






